package com.macro.mall.model;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 观光车图片参数
 * Created by macro on 2018/4/26.
 */
@Data
@EqualsAndHashCode
@ExcelIgnoreUnannotated
public class BmsVolunteerRegistration {
	
    @ApiModelProperty("主键")
    private Long id;
    
    @ApiModelProperty("招聘志愿活动id")
    private Long recruitmentInformationId;
    
    @ApiModelProperty("用户id")
    private Long userId;
    
    @ApiModelProperty("用户名")
    @ExcelProperty(value = "用户名", index = 1)
    private String userName;
    
    @ApiModelProperty("用户手机号码")
    @ExcelProperty(value = "用户手机号码", index = 2)
    private String userPhone;
    
    @ApiModelProperty("用户类型")
    private Long userType;
    
    @ApiModelProperty("用户身份证号")
    private String userIdCard;
    
    @ApiModelProperty("报名时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelProperty(value = "报名时间", index = 3)
    private Date applicationTime;
    
    @ApiModelProperty("状态")
    @ExcelProperty(value = "状态", index = 4)
    private Integer status;
    
    @ApiModelProperty("创建人")
    private Long createUser;
    
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    
    @ApiModelProperty("更新人")
    private Long updateUser;
    
    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    
    @ApiModelProperty("备注")
    private String remark;
    
    @ApiModelProperty("删除状态")
    private Boolean isDelete;

    @ExcelProperty(value = "标题", index = 0)
    private String title;
    
    @ApiModelProperty("开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelProperty(value = "开始时间", index = 5)
    private Date openingTime;

    @ApiModelProperty("图片地址")
    private String pic;

    @Override
    public String toString() {
        return "BmsVolunteerRegistration{" +
                "id=" + id +
                ", recruitmentInformationId=" + recruitmentInformationId +
                ", userId=" + userId +
                ", userName='" + userName + '\'' +
                ", userPhone='" + userPhone + '\'' +
                ", userType=" + userType +
                ", userIdCard='" + userIdCard + '\'' +
                ", applicationTime=" + applicationTime +
                ", status=" + status +
                ", createUser=" + createUser +
                ", createTime=" + createTime +
                ", updateUser=" + updateUser +
                ", updateTime=" + updateTime +
                ", remark='" + remark + '\'' +
                ", isDelete=" + isDelete +
                ", title='" + title + '\'' +
                '}';
    }
}
